package com.kb.erp.controller.crm;


import com.kb.erp.common.ApiResponse;
import com.kb.erp.domain.crm.PublicPool;
import com.kb.erp.service.crm.CrmLowCodeService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * crm 低代码接口
 */
@RestController
@RequestMapping("/crm")
public class CrmController {

    @Resource
    private CrmLowCodeService crmService;
    /**
     * 客户转移到公海部门
     */
    @PostMapping("/transferToPublicPool")
    public ApiResponse transferToPublicPool(@RequestBody PublicPool publicPool) {
        crmService.transferToPublicPool(publicPool);
        return ApiResponse.success("转移成功");
    }
    /**
     * 批量提交收款单
     */
    @GetMapping("/batchSubmit")
    public ApiResponse batchSubmit(String ids) {
        crmService.batchSubmit(ids);
        return ApiResponse.success("成功");
    }
}
